POV-Ray : Newsgroups : povray.newusers : Image maps : Re: Image maps Server Time
29 Jul 2024 02:27:44 EDT (-0400)
  Re: Image maps  
From: Chris B
Date: 15 Dec 2006 04:01:30
Message: <4582646a$1@news.povray.org>
"Chris B" <c_b### [at] btconnectcomnospam> wrote in message 
news:45826366$1@news.povray.org...
>
> "David Instone" <d.i### [at] gmailcom> wrote in message 
> news:45824328@news.povray.org...
>> Is there any way to work out how to scale the file to fit the box
>> surface or am I going about this completely the wrong way. I really only
>> want to place an image on the surface.
>>
>> Thanks
>>

Oh yes, and the scaling bit - By default the image takes up one unit square 
with it's bottom left corner at the origin. So to scale to a 4x4 surface and 
centre it you'd need

pigment{image_map {sys "Test.bmp"} scale 4 translate <-2,0,-2> rotate x*90}

Regards,
Chris B.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.